Skip to content

Send the anonymous profile tracker in self registration and on each flow request - #10507

Open
SujanSanjula96 wants to merge 1 commit into
wso2:masterfrom
SujanSanjula96:cds-improve-unify-architecture
Open

SujanSanjula96 wants to merge 1 commit into
wso2:masterfrom
SujanSanjula96:cds-improve-unify-architecture

Conversation

@SujanSanjula96

@SujanSanjula96 SujanSanjula96 commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Send the anonymous profile tracker from the portals, so that it can be propagated through the identity context during registration.

Changes

  • self-registration-process.jsp (recovery portal): read the cds_profile cookie of the request, and use it for the existing cdsProfile claim and for a new anonymous_profile_tracker property of the self registration request. Before this change, the page took the value from a form parameter.
  • self-registration-username-request.jsp (recovery portal): remove the hidden form field that carried the cookie value, because the process page now reads the cookie.
  • execution-flow.jsp (accounts portal): send anonymous_profile_tracker on each request that continues a flow (a request with a flowId), not only on the initial request. The flow engine checks that each request of a registration flow sends the same value as the initial request (Add the anonymous user to the identity context for registration flows carbon-identity-framework#8190).
  • Add a changeset.

Ship this change in the same release as wso2/carbon-identity-framework#8190. With the new flow engine, a portal that sends the tracker only on the initial request loses the tracker on a flow with more than one step.

Related PRs

@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change passes the anonymous profile tracker through self-registration properties and flow-continuation request inputs. A changeset records a patch release for @wso2is/identity-apps-core.

Changes: Anonymous profile tracker propagation

Layer / File(s) Summary
Self-registration registration properties
.changeset/quiet-owls-match.md, identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp
When the CDS profile parameter is nonblank, registration properties now include it as anonymous_profile_tracker. The existing user-claim handling for that parameter is unchanged. The changeset records a patch release.
Flow-continuation request inputs
identity-apps-core/apps/accounts/src/main/webapp/execution-flow.jsp
When the request body has a flowId and the tracker is not "null", the helper adds anonymous_profile_tracker to inputs while preserving existing inputs. The fetch serializes the transformed body.

Change: Feature

Merge Risk: Minimal · up to a7369

The change adds the anonymous profile tracker to self-registration and to requests that continue a flow. No concrete defect was found in the repository code. Release it together with the matching backend change, as the author notes.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title names the two changed behaviors: sending the anonymous profile tracker during self registration and on each flow request. Both match the raw summary and the PR objectives. It is specific and…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template. It states the purpose: the portals send the anonymous profile tracker so it propagates through the identity context during registration. It covers the …
Changeset Required Passed The check passes. The PR adds a new changeset file, .changeset/quiet-owls-match.md (git diff master...HEAD reports it as A). It is not .changeset/README.md. The file declares `"@wso2is/identity-…
Full details: Title check

Explanation

The title names the two changed behaviors: sending the anonymous profile tracker during self registration and on each flow request. Both match the raw summary and the PR objectives. It is specific and reads clearly, though it is long at 80 characters.

Full details: Description check

Explanation

The description follows the repository template. It states the purpose: the portals send the anonymous profile tracker so it propagates through the identity context during registration. It covers the three changed files and a changeset. It lists related PRs (carbon-identity-framework#8190, identity-governance#1148, identity-customer-data-service-extensions#27) and explains a release-coordination requirement. Template sections for Related Issues and Related PRs are filled, though Related Issues is not explicitly addressed. The checklist, security checks, and developer checklist are not marked, and the description does not say whether testing was done.

Full details: Changeset Required

Explanation

The check passes. The PR adds a new changeset file, .changeset/quiet-owls-match.md (git diff master...HEAD reports it as A). It is not .changeset/README.md. The file declares "@wso2is/identity-apps-core": patch, and the PR changes files under identity-apps-core/apps/ (execution-flow.jsp, self-registration-process.jsp). That package is the one the changes affect. The other changeset in the tree, hungry-dolls-slide.md, is not in this PR's diff and was not used as evidence. The changes do not touch features/ or modules/, so no extra console or myaccount entry is needed. The primary PR author is SujanSanjula96, from the provider record.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • create changeset
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 590630c and a736999.

Files selected for processing: 2

  • identity-apps-core/apps/accounts/src/main/webapp/execution-flow.jsp
  • identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-process.jsp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

…low request

Read the cds_profile cookie in the self registration process page and add the
anonymous_profile_tracker property to the self registration request. Remove the
hidden form field that carried the value. Send the anonymous_profile_tracker on
each request that continues a flow.
@SujanSanjula96
SujanSanjula96 force-pushed the cds-improve-unify-architecture branch from a736999 to 877595f Compare November 17, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants